package com.czr.dao.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czr.dao.entity.CzrColumn;
import com.czr.dao.entity.CzrNews;
import com.czr.dto.ColumnParam;
import com.czr.dto.CzrNewsParam;
import com.czr.dto.NewsParam;
import com.czr.dto.Search;
import com.czr.vo.Result;

import java.util.Map;

/**
 * <p>
 * 名企推荐 服务类
 * </p>
 *
 */
public interface CzrNewsService extends IService<CzrNews> {

    Result<Object> list(NewsParam search) throws Exception ;

    Result<Map<String,Object>> addOrUpdate(CzrNewsParam czrNewsParam,Integer userId) throws Exception ;

    Result<Object> getNewsInfo(Long newsId) throws Exception ;

    Result<Object> glList(NewsParam search) throws Exception ;

    Result<Map<String,Object>> delNews(Integer newsId, JSONObject cacheToken) throws Exception ;

    Result<Object> getNewsInfoByNewsId(Integer columnId) throws Exception ;

    Result<Object> addChildColumn(CzrColumn column) throws Exception ;


}
